home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Open Transport / Sample Code / NetFractal™ / ES stuff□ / AWindow.h < prev    next >
Encoding:
Text File  |  1996-11-19  |  845 b   |  50 lines  |  [TEXT/MPCC]

  1. //    AWindow.h
  2.  
  3. #pragma once
  4.  
  5. #include <LWindow.h>
  6.  
  7.  
  8. class ScreenTarget;
  9. class DrawPoint;
  10.  
  11. class AWindow :
  12.     public LWindow
  13. {
  14. protected:
  15.     ScreenTarget        *fScreenTarget;
  16.     DrawPoint            *fNetPoint;
  17.  
  18.     void                MaybeRefresh();
  19.  
  20. public:
  21.  
  22.     enum {
  23.         class_ID = 'AWin'
  24.     };
  25.  
  26.     static AWindow        *CreateWindow(
  27.                             short id,
  28.                             LCommander *super);
  29.     static AWindow        *CreateWindowStream(
  30.                             LStream *stream);
  31.  
  32.                         AWindow(
  33.                             LStream *inStream) : LWindow(inStream) { fNetPoint = NULL; }
  34.     virtual                ~AWindow();
  35.     virtual void        SetNetPoint(
  36.                             DrawPoint *point)
  37.                         {
  38.                             fNetPoint = point;
  39.                         }
  40.     virtual void        SetScreenTarget(
  41.                             ScreenTarget *aTarget)
  42.                         {
  43.                             fScreenTarget = aTarget;
  44.                         }
  45.     void                DoSetPosition(Point inPosition);
  46.     void                DoSetBounds(const Rect &inBounds);
  47.     void                SendAESetPosition(Point, Boolean);
  48.  
  49. };
  50.